{template 'admin','header'}
<form name="myform" method="post" action="{$self_url}?action={$action}" onsubmit="r_submit(this);">
    <input type="hidden" name="id" value="{$id}">
    <input type="hidden" name="forward" value="{$forward}">
    <table cellspacing="1" cellpadding="2" class="table_form">
        {if $action=='add'}<caption>添加内容模型</caption>{else}<caption>修改内容模型</caption>{/if}
        <tbody>
            <tr>
                <th width="300"><strong>内容模型名称</strong></th>
                <td><input id="name" type="text" size="30" name="data[name]" class="input_blur" value="{$data['name']}"> <font color="red">*</font></td>
            </tr>
            <tr>
                <th><strong>内容模型描述</strong></th>
                <td><input id="description" type="text" size="30" name="data[description]" class="input_blur" value="{$data['description']}"></td>
            </tr>
            {if $action=='add'}
            <tr>
                <th><strong>数据表名</strong></th>
                <td>{DB_PRE}c_<input id="tablename" type="text" size="12" name="data[tablename]" class="input_blur" value="{$data['tablename']}"> <font color="red">*</font></td>
            </tr>
            {/if}
            <tr>
                <th></th>
                <td>
                    <input type="submit" value=" 确定 " name="submitform" class="button_style">
                    &nbsp; <input type="button" value=" 返回 " name="return" class="button_style" onclick="window.location='{HTTP_REFERER}'">
                </td>
            </tr>
        </tbody>
    </table>
</form>
{template 'admin','footer'}
